.class public Lcom/noshufou/android/su/widget/LogListItem;
.super Landroid/view/ViewGroup;
.source "LogListItem.java"


# instance fields
.field private final mContext:Landroid/content/Context;

.field private final mGapBetweenFields:I

.field private mHeaderBackgroundDrawable:Landroid/graphics/drawable/Drawable;

.field private mHeaderBackgroundHeight:I

.field private final mHeaderPaddingLeft:I

.field private mHeaderTextView:Landroid/widget/TextView;

.field private mHeaderVisible:Z

.field private mHorizontalDividerDrawable:Landroid/graphics/drawable/Drawable;

.field private mHorizontalDividerHeight:I

.field private mHorizontalDividerVisible:Z

.field private mLineHeight:I

.field private mNameTextView:Landroid/widget/TextView;

.field private final mPaddingBottom:I

.field private final mPaddingLeft:I

.field private final mPaddingRight:I

.field private final mPaddingTop:I

.field private final mPerferredHeight:I

.field private mTimeTextView:Landroid/widget/TextView;

.field private mTypeTextView:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 61
    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 62
    iput-object p1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    .line 64
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    .line 66
    .local v0, resources:Landroid/content/res/Resources;
    const v1, 0x7f09000f

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    .line 65
    iput v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPerferredHeight:I

    .line 68
    const v1, 0x7f090010

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    .line 67
    iput v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingTop:I

    .line 70
    const v1, 0x7f090012

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    .line 69
    iput v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingBottom:I

    .line 72
    const v1, 0x7f090013

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    .line 71
    iput v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingLeft:I

    .line 74
    const v1, 0x7f090011

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    .line 73
    iput v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingRight:I

    .line 76
    const v1, 0x7f090014

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    .line 75
    iput v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mGapBetweenFields:I

    .line 78
    const v1, 0x7f090015

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    .line 77
    iput v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderPaddingLeft:I

    .line 79
    return-void
.end method

.method private ensureHeaderBackground()V
    .locals 2

    .prologue
    .line 185
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderBackgroundDrawable:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_0

    .line 186
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    .line 187
    const v1, 0x7f020025

    .line 186
    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderBackgroundDrawable:Landroid/graphics/drawable/Drawable;

    .line 188
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderBackgroundDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v0

    iput v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderBackgroundHeight:I

    .line 190
    :cond_0
    return-void
.end method

.method private ensureHorizontalDivider()V
    .locals 2

    .prologue
    .line 174
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerDrawable:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_0

    .line 175
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    .line 176
    const v1, 0x7f020010

    .line 175
    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerDrawable:Landroid/graphics/drawable/Drawable;

    .line 177
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v0

    iput v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerHeight:I

    .line 179
    :cond_0
    return-void
.end method


# virtual methods
.method public dispatchDraw(Landroid/graphics/Canvas;)V
    .locals 1
    .parameter "canvas"

    .prologue
    .line 194
    iget-boolean v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderVisible:Z

    if-eqz v0, :cond_0

    .line 195
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderBackgroundDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 197
    :cond_0
    iget-boolean v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerVisible:Z

    if-eqz v0, :cond_1

    .line 198
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 200
    :cond_1
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchDraw(Landroid/graphics/Canvas;)V

    .line 201
    return-void
.end method

.method protected onLayout(ZIIII)V
    .locals 11
    .parameter "changed"
    .parameter "left"
    .parameter "top"
    .parameter "right"
    .parameter "bottom"

    .prologue
    .line 116
    sub-int v1, p5, p3

    .line 117
    .local v1, height:I
    sub-int v7, p4, p2

    .line 119
    .local v7, width:I
    const/4 v5, 0x0

    .line 121
    .local v5, topBound:I
    iget-boolean v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerVisible:Z

    if-eqz v8, :cond_0

    .line 122
    invoke-direct {p0}, Lcom/noshufou/android/su/widget/LogListItem;->ensureHorizontalDivider()V

    .line 123
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerDrawable:Landroid/graphics/drawable/Drawable;

    .line 124
    iget v9, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingLeft:I

    .line 125
    iget v10, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerHeight:I

    sub-int v10, v1, v10

    .line 123
    invoke-virtual {v8, v9, v10, v7, v1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 130
    :cond_0
    iget v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingTop:I

    add-int/2addr v5, v8

    .line 131
    iget v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    add-int v0, v5, v8

    .line 133
    .local v0, bottomBound:I
    iget-boolean v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderVisible:Z

    if-eqz v8, :cond_1

    .line 134
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderBackgroundDrawable:Landroid/graphics/drawable/Drawable;

    .line 135
    const/4 v9, 0x0

    .line 136
    const/4 v10, 0x0

    .line 134
    invoke-virtual {v8, v9, v10, v7, v1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 139
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    iget v9, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderPaddingLeft:I

    invoke-virtual {v8, v9, v5, v7, v0}, Landroid/widget/TextView;->layout(IIII)V

    .line 144
    :cond_1
    iget v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingLeft:I

    add-int v2, p2, v8

    .line 145
    .local v2, leftBound:I
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    invoke-virtual {v8}, Landroid/widget/TextView;->getMeasuredWidth()I

    move-result v8

    add-int v4, v2, v8

    .line 146
    .local v4, timeRightBound:I
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    invoke-virtual {v8, v2, v5, v4, v0}, Landroid/widget/TextView;->layout(IIII)V

    .line 152
    iget v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mGapBetweenFields:I

    add-int v2, v4, v8

    .line 153
    iget v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingRight:I

    sub-int v3, p4, v8

    .line 154
    .local v3, rightBound:I
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    invoke-virtual {v8}, Landroid/widget/TextView;->getMeasuredWidth()I

    move-result v8

    sub-int v6, v3, v8

    .line 155
    .local v6, typeLeftBound:I
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    if-eqz v8, :cond_2

    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {v8}, Landroid/widget/TextView;->getVisibility()I

    move-result v8

    if-nez v8, :cond_2

    .line 156
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {v8, v2, v5, v6, v0}, Landroid/widget/TextView;->layout(IIII)V

    .line 163
    :cond_2
    iget-object v8, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    invoke-virtual {v8, v6, v5, v3, v0}, Landroid/widget/TextView;->layout(IIII)V

    .line 168
    return-void
.end method

.method protected onMeasure(II)V
    .locals 6
    .parameter "widthMeasureSpec"
    .parameter "heightMeasureSpec"

    .prologue
    const/high16 v5, 0x4000

    const/4 v4, 0x0

    .line 83
    invoke-static {v4, p1}, Lcom/noshufou/android/su/widget/LogListItem;->resolveSize(II)I

    move-result v1

    .line 84
    .local v1, width:I
    const/4 v0, 0x0

    .line 86
    .local v0, height:I
    iput v4, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    .line 88
    iget-object v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    invoke-virtual {v2, v4, v4}, Landroid/widget/TextView;->measure(II)V

    .line 89
    iget-object v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getMeasuredHeight()I

    move-result v2

    iput v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    .line 91
    iget-object v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    if-eqz v2, :cond_0

    .line 92
    iget-object v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {v2, v4, v4}, Landroid/widget/TextView;->measure(II)V

    .line 93
    iget v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    iget-object v3, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {v3}, Landroid/widget/TextView;->getMeasuredHeight()I

    move-result v3

    invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I

    move-result v2

    iput v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    .line 96
    :cond_0
    iget-object v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    invoke-virtual {v2, v4, v4}, Landroid/widget/TextView;->measure(II)V

    .line 97
    iget v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    iget-object v3, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    invoke-virtual {v3}, Landroid/widget/TextView;->getMeasuredHeight()I

    move-result v3

    invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I

    move-result v2

    iput v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    .line 99
    iget v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mLineHeight:I

    iget v3, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingTop:I

    add-int/2addr v2, v3

    iget v3, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPaddingBottom:I

    add-int v0, v2, v3

    .line 101
    iget v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mPerferredHeight:I

    invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I

    move-result v0

    .line 103
    iget-boolean v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderVisible:Z

    if-eqz v2, :cond_1

    .line 104
    invoke-direct {p0}, Lcom/noshufou/android/su/widget/LogListItem;->ensureHeaderBackground()V

    .line 105
    iget-object v2, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    .line 106
    invoke-static {v1, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    .line 107
    iget v4, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderBackgroundHeight:I

    invoke-static {v4, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    .line 105
    invoke-virtual {v2, v3, v4}, Landroid/widget/TextView;->measure(II)V

    .line 108
    add-int/lit8 v0, v0, 0x1

    .line 111
    :cond_1
    invoke-virtual {p0, v1, v0}, Lcom/noshufou/android/su/widget/LogListItem;->setMeasuredDimension(II)V

    .line 112
    return-void
.end method

.method public setDividerVisible(Z)V
    .locals 0
    .parameter "visible"

    .prologue
    .line 208
    iput-boolean p1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHorizontalDividerVisible:Z

    .line 209
    return-void
.end method

.method public setNameText(Ljava/lang/CharSequence;)V
    .locals 4
    .parameter "text"

    .prologue
    const/4 v3, 0x1

    .line 250
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 251
    new-instance v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    .line 252
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setSingleLine(Z)V

    .line 253
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    sget-object v1, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    .line 254
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    const v2, 0x1030046

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    .line 255
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getTypeface()Landroid/graphics/Typeface;

    move-result-object v1

    invoke-virtual {v0, v1, v3}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    .line 256
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/noshufou/android/su/widget/LogListItem;->addView(Landroid/view/View;)V

    .line 258
    :cond_0
    if-nez p1, :cond_1

    .line 259
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 264
    :goto_0
    return-void

    .line 261
    :cond_1
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 262
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mNameTextView:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method public setSectionHeader(Ljava/lang/String;)V
    .locals 4
    .parameter "title"

    .prologue
    const/4 v3, 0x0

    .line 215
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 216
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 217
    new-instance v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    .line 219
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    const v1, 0xffffff

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundColor(I)V

    .line 220
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    .line 221
    const v2, 0x7f080004

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    .line 220
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 222
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    const/high16 v1, 0x4160

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextSize(F)V

    .line 223
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    const/16 v1, 0x13

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setGravity(I)V

    .line 224
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/noshufou/android/su/widget/LogListItem;->addView(Landroid/view/View;)V

    .line 226
    :cond_0
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 227
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 228
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderVisible:Z

    .line 235
    :goto_0
    return-void

    .line 230
    :cond_1
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    if-eqz v0, :cond_2

    .line 231
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderTextView:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 233
    :cond_2
    iput-boolean v3, p0, Lcom/noshufou/android/su/widget/LogListItem;->mHeaderVisible:Z

    goto :goto_0
.end method

.method public setTimeText(Ljava/lang/CharSequence;)V
    .locals 3
    .parameter "text"

    .prologue
    .line 238
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 239
    new-instance v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    .line 240
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSingleLine(Z)V

    .line 241
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    sget-object v1, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    .line 242
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    const v2, 0x1030046

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    .line 243
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/noshufou/android/su/widget/LogListItem;->addView(Landroid/view/View;)V

    .line 245
    :cond_0
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 246
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTimeTextView:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 247
    return-void
.end method

.method public setTypeText(Ljava/lang/CharSequence;)V
    .locals 3
    .parameter "text"

    .prologue
    .line 267
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 268
    new-instance v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    .line 269
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSingleLine(Z)V

    .line 270
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    sget-object v1, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    .line 271
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/noshufou/android/su/widget/LogListItem;->mContext:Landroid/content/Context;

    const v2, 0x1030046

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    .line 272
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/noshufou/android/su/widget/LogListItem;->addView(Landroid/view/View;)V

    .line 274
    :cond_0
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 275
    iget-object v0, p0, Lcom/noshufou/android/su/widget/LogListItem;->mTypeTextView:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 276
    return-void
.end method
